package com.listeningframework.boot.autoconfigure.orm.jpa.search.filters;

import java.util.Arrays;

import com.listeningframework.boot.autoconfigure.orm.jpa.search.Operations;

public class BooleanSearchFilter extends SearchFilter<Boolean> {

    public BooleanSearchFilter() {

    }

    public BooleanSearchFilter(String name, Operations operations, Boolean... values) {
        setName(name);
        setOperations(operations);
        if (values != null && values.length > 0) {
            getValue().addAll(Arrays.asList(values));
        }
    }

    @Override
    public Class<Boolean> getType() {
        return Boolean.class;
    }
}
